# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-hkdf
_pkgname=hkdf
pkgver=0.0.3
pkgrel=1
pkgdesc="HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"
url="https://pypi.org/project/hkdf/"
arch="noarch"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
options="!check" # No test suite
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/h/hkdf/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
c58f9310c151f8d710998d019221713ec71ac8083c42300f5e77326c7b35be341263c40fb485402937c381a6435cbd9899c8d32846a50d1d1e6a4d3e61f58c7d  hkdf-0.0.3.tar.gz
"
